//package net.martin.sd;

class Telephone {

     float screen;
     float cpu;

     float mem;

    Telephone(){
        System.out.println("无参数构造方法");
    }

    Telephone(float screen2, float cpu2, float mem){
        screen = screen2;
        cpu = cpu2;
        this.mem = mem;
        System.out.println("有参数构造方法");
    }

    void call() {
        System.out.println("打电话功能");
    }

    void sendMessage(){
        System.out.println("发短信功能");
        System.out.println("screen:"+ screen + "---cpu: "+ cpu + "---men: "+ mem);
    }

    static String hobby = "我是类变量";

    static void hobby(String str){
        hobby = str;
        System.out.println("我是类方法");
    }


}
